import time
import unittest
from BeautifulReport import BeautifulReport
from config.config import CASE_PATH,REPORT_PATH

now = time.strftime("%Y%m%d-%H%M%S")
filename = f"test_crm_result_lwl_{now}.html"

suite =unittest.defaultTestLoader.discover(CASE_PATH, pattern="test_xsjh_*.py",)
suite = unittest.defaultTestLoader.discover(CASE_PATH, pattern="test*.py")
runner = BeautifulReport(suite)
runner.report(description="zyl的测试用例报告",
              report_dir=REPORT_PATH,
              filename=filename
)

